package com.clouddot.baipai.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.clouddot.baipai.R;
import com.clouddot.baipai.http.entity.response.getRecordByIdResponse;

import java.util.List;

/**
 * Created by wxy on 2018/8/26.
 */

public class StudentRecordAdapter extends BaseQuickAdapter<getRecordByIdResponse.attentionRecord, BaseViewHolder> {


    public StudentRecordAdapter(List<getRecordByIdResponse.attentionRecord> mDataList) {
        super(R.layout.h_adapter_studentattend_item, mDataList);
    }

    @Override
    protected void convert(BaseViewHolder helper, getRecordByIdResponse.attentionRecord item) {
        helper.setText(R.id.tv1, item.StudentName);
        helper.setText(R.id.tv2, item.CardTime);
        helper.setBackgroundRes(R.id.image, R.drawable.attended);
    }

}
